package com.zc.controller.zc;

import javafx.beans.property.MapProperty;
import org.apache.ibatis.javassist.bytecode.LineNumberAttribute;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 张聪
 */
@RestController
public class ZcController {
  @Autowired
  ZcServcie servcie;

    @RequestMapping("zchello")
    public List<Map> hello(@RequestParam(value = "name",required = false)String name){

        List<Map> list =servcie.query();
        return list;
    }
}
